<?php
return [
    'connections' => [
        'rabbitmq' => [
            'host'               => 'localhost',
            'vhost'              => '/',
            'port'               => 5672,
            'username'           => 'guest',
            'password'           => '123456',
            'mechanism'          => 'AMQPLAIN',
            'timeout'            => 10,
            // 重启间隔
            'restart_interval'   => 0,
            // 心跳间隔
            'heartbeat'          => 50,
            // 心跳回调
            'heartbeat_callback' => function () {
                echo "心跳" . date('Y年m月d日H时i分s秒') . PHP_EOL;
            },
            // 错误回调
            'error_callback'     => function (Throwable $throwable) {},
        ],
    ],
];
